<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    // Error
    //1. 引用类型错误  reference Error
    // console.log(a);

    //2. 类型错误  TypeError
    // let a = {};
    // a();

    //3. 范围错误  RangeError
    // let arr = new Array(-1);

    //4. 语法错误
    // function a(){

  </script>
</body>
</html>